package com.xunqi.crm.service;

import com.xunqi.crm.pojo.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService {

    public User login(String usrName, String usrPassword);

    public void saveUser(User user);

    public void deleteUser(Long usrId);

    public User getUser(Long usrId);

    public Page<User> findUsers(String usrName, Long roleId, Pageable pageable);

    // 根据用户名查询用户
    public User getUser(String usrName);

}
